package com.insigma.business.qrcode.job.consumer.impl;

import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.dto.SoldierBasicInfoDTO;
import com.insigma.business.qrcode.soldier._provider.SoldierBasicInfoProvider;
import com.insigma.business.qrcode.job.consumer.SoldierBasicInfoConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;


@Service
public class SoldierBasicInfoConsumerImpl implements SoldierBasicInfoConsumer {

    @Autowired
    @Lazy
    private SoldierBasicInfoProvider soldierBasicInfoProvider;


    @Override
    public BaseResponse<SoldierBasicInfoDTO> getSoldierBasicInfo(String idCardNo) {
        return soldierBasicInfoProvider.getSoldierBasicInfoByCard(idCardNo);
    }
}
